﻿using Esst.Model;
using Esst.Dto.WebApp;

namespace Esst.Dto.Request
{
    /// <summary>
    /// 请求信息附加
    /// </summary>
    public class RequestHolder<T> : IRequestHolder
    {
        /// <inheritdoc/>
        public virtual UserInfo? UserInfo { get; set; }
        /// <summary>
        /// 请求数据
        /// </summary>
        public virtual T? Data { get; set; }
        /// <inheritdoc/>
        object? IRequestHolder.Data => Data;
        /// <inheritdoc/>
        public virtual PageInfo? PageInfo { get; set; }
        /// <inheritdoc/>
        public virtual ClientInfo? Client { get; set; }
    }
}